package com.yl.chainStore.entity.pay

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import com.yl.common.annotation.NoArg
import com.yl.common.getContext
import java.util.*

/**
 * <p>
 *
 * </p>
 *
 * @author cxw
 * @since 2021-11-25
 */
@NoArg
@TableName("pay_customer_balance_to_customer_log")
data class PayCustomerBalanceToCustomerLog(

	/**
	 * id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	var id: Long,

	/**
	 * 患者id
	 */
	@TableField("customer_id")
	var customerId: Long,

	/**
	 * 接收患者id
	 */
	@TableField("to_customer_id")
	var toCustomerId: Long,

	/**
	 * 金额
	 */
	@TableField("money")
	var money: Long = 0,

	/**
	 * 创建时间
	 */
	@TableField("create_time")
	var createTime: Date = Date(),

	/**
	 * 创建人
	 */
	@TableField("create_user_id")
	var createUserId: Long = getContext().userId,

	/**
	 * 馈赠金
	 */
	@TableField("gifts_of_gold")
	var giftsOfGold :Long ?= 0,

	@TableField("company_id")
	var companyId:Long = getContext().companyId,

	@TableField("sub_company_id")
	var subCompanyId:Long = getContext().subCompanyId,
	)
